﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Loja_Virtual_Livraria.App_Code.Model;
using Loja_Virtual_Livraria.App_Code.SQLServerDAL;

namespace Loja_Virtual_Livraria.App_Code.BLL
{
    public class JuridicaBLL
    {
        public static Juridica newJuridica()
        {
            return new Juridica();
        }

        public static void saveJuridica(Juridica myJuridica)
        {
            if (myJuridica.getJuridicaID() == 0x0)
                JuridicaDAL.insertJuridica(myJuridica);
            else
                JuridicaDAL.updateJuridica(myJuridica);
        }
    }
}